﻿function ShowHide(divId, imgId) {
    var div = document.getElementById(divId);
    var img = document.getElementById(imgId);

    if (div.style.display != "block") {
        div.style.display = "block";
        img.src = "images/Arrow_Up.png";
    }
    else{
        div.style.display = "none";
        img.src = "images/Arrow_Down.png";
    }
}

function printIt(printThis) 
{ 
    win = window.open(); 
    self.focus(); 
    win.document.open();
    win.document.write('<html><head>');
    win.document.write('<style>body, td { font-family: Verdana; font-size: 10pt;}</style>'); 
    win.document.write('</head><body>');
    win.document.write(printThis); 
    win.document.write('</body></html>');
    win.document.close();
    win.print();
    win.close(); 
 }

 function GetRequest() {
     var url = location.search;
     var theRequest = new Object();
     if (url.indexOf("?") != -1) {
         var str = url.substr(1);
         strs = str.split("&");
         for (var i = 0; i < strs.length; i++) {
             theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
         }
     }
     return theRequest;
 }
   
